import MessageCom from './src/Index.vue'
const Message = {}

Message.install = function (Vue) {
  //$message
  Vue.prototype.$message = options => {
    options = options || {}
    let MessageConstructor = Vue.extend(MessageCom)
    let insatnce = new MessageConstructor({
      data: options
    })
    insatnce.$mount()
    document.body.appendChild(insatnce.$el)
    return insatnce
  }
}

export default Message